﻿using System;
using System.Collections.Generic;
using UnityEngine;

// Token: 0x0200022C RID: 556
public class CullBox : MonoBehaviour
{
	// Token: 0x06000BAE RID: 2990 RVA: 0x00060DDC File Offset: 0x0005EFDC
	private void Start()
	{
		foreach (GameObject gameObject in this.Object)
		{
			gameObject.SetActive(false);
		}
	}

	// Token: 0x06000BAF RID: 2991 RVA: 0x00060E38 File Offset: 0x0005F038
	private void OnTriggerEnter(Collider other)
	{
		if (other == this.Collider)
		{
			foreach (GameObject gameObject in this.Object)
			{
				gameObject.SetActive(true);
			}
		}
	}

	// Token: 0x06000BB0 RID: 2992 RVA: 0x00060EA8 File Offset: 0x0005F0A8
	private void OnTriggerExit(Collider other)
	{
		if (other == this.Collider)
		{
			foreach (GameObject gameObject in this.Object)
			{
				gameObject.SetActive(false);
			}
		}
	}

	// Token: 0x040010DD RID: 4317
	public List<GameObject> Object;

	// Token: 0x040010DE RID: 4318
	public Collider Collider;
}
